class Person:
    city = '北京'
    def __init__(self,name,age,hobby,idol):
        self.name =name
        self.age = age
        self.hobby = hobby
        self.idol = idol
    @staticmethod
    def printMenu():
        print('--------个人信息---------')
    def printInfo(self):
        print('居住城市：',Person.city)
        print('姓名：',self.name)
        print('年龄:',self.age)
        print('爱好：',self.hobby)
        print('最喜欢的idol：',self.idol)
person1 =Person('与栾',18,'打羽毛球','戚砚笛')
person1.printMenu()
person1.printInfo()
person1.city ='上海'
person2 =Person('唐果',25,'跳绳，跑步','虞书欣，丁禹兮')
person2.printMenu()
person2.printInfo()

